﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditCauHinh.ascx.cs" Inherits="CMS.Web.ListManager.EditCauHinh" %>
<table width="100%" align="center" style="border-collapse: collapse" cellSpacing="0" cellPadding="0" border="0">
    <tr><td valign="middle" align="center" height="50px"><font class="Title">HIỆU CHỈNH THÔNG TIN CẤU HÌNH</font></td>
    </tr>
    <tr>
        <td width="100%">
			<table id="tblNew" class="Table_Border" style="BORDER-COLLAPSE: collapse" cellSpacing="0" cellPadding="0" width="99%" align="center" border="0">
			    <tr class="">
				    <td colSpan="2">
					    <table width="100%" border="0">
					        <tr class="">
							    <td width="40%" height="20px"><asp:label id="lblEdit" Runat="server"></asp:label></TD>
								<td align="right" width="60%"><asp:label id="lblMsg" Runat="server" ForeColor="#FF0000" Font-Names="Verdana"></asp:label></TD>
							</tr>
						</table>
					</td>
		        </tr>
		        <tr>
		            <td class="Col_Left" width="23%"></td>
			        <td class="Col_Right"><b><%=TenPhieu %></b>
                    </td>
                </tr>
                <tr>
		            <td class="Col_Left" width="23%">Địa danh <font color="#ff0000">(*)</font>:</td>
			        <td class="Col_Right">
                        <asp:textbox id="txtTenCoQuan" runat="server" CssClass="TextBox" Width="76%" MaxLength="50"></asp:textbox>
                    </td>
                </tr>
               <tr>
		            <td class="Col_Left" width="23%">Tiêu đề trái 1:</td>
			        <td class="Col_Right">
                        <asp:textbox id="txtMuc1" runat="server" CssClass="TextBox" Width="76%" MaxLength="50"></asp:textbox>
                    </td>
                </tr>
                <tr>
		            <td class="Col_Left" width="23%">Tiêu đề trái 2:</td>
			        <td class="Col_Right">
                        <asp:textbox id="txtMuc2" runat="server" CssClass="TextBox" Width="76%" MaxLength="50"></asp:textbox>
                    </td>
                </tr>
                <tr>
		            <td class="Col_Left" width="23%">Phòng phụ trách:</td>
			        <td class="Col_Right">
                        <asp:textbox id="txtPhongTaoPhieu" runat="server" CssClass="TextBox" Width="76%" MaxLength="50"></asp:textbox>
                    </td>
                </tr>
                <tr>
		            <td class="Col_Left" width="23%">Số hiệu phiếu:</td>
			        <td class="Col_Right">
                        <asp:textbox id="txtSoHieu" runat="server" CssClass="TextBox" Width="76%" MaxLength="50"></asp:textbox>
                    </td>
                </tr>
                <tr>
		            <td class="Col_Left" width="23%">Về việc\Kính gửi:</td>
			        <td class="Col_Right">
                        <asp:textbox id="txtVeViec" runat="server" CssClass="TextBox" Width="76%" MaxLength="50"></asp:textbox>
                    </td>
                </tr>           
				<tr>
                    <td></td>
				    <td height="30" class="Col_Right">
				        <input type="button" class="Button" onclick="CheckInput(0);" value="Cập nhật" />
                        <asp:button style="display:none" id="btnOK" runat="server" CssClass="Button" Text="Cập nhật" OnClick="btnOK_Click"></asp:button>
						<asp:button id="btnCancel" Runat="server" CssClass="Button" Text="Bỏ qua" CausesValidation="False" OnClick="btnCancel_Click"></asp:button>
                        <input type="hidden" id="hidID" name="hidID" runat="server" />
                    </td>
				</tr>
	        </table>
		</td>
    </tr>
</table>
<script type="text/javascript" language="javascript" src="Common/util.js"></script>
<script type="text/javascript" language="javascript">
    function CheckInput_callback(){
        strMsg = "";
        strMsg += isValid("<%=txtTenCoQuan.ClientID %>",50,1,spec,1,0,"Tên địa danh");
        
        
        if (strMsg!=""){
            strMsg = strMsg.substr(1);
            alert(strMsg);
            window.returnValue = false;
            return false;
        }
        else{
            //$('<%=btnOK.ClientID %>').click();
            document.getElementById('<%=btnOK.ClientID %>').click();
        }
    }
    function CheckInput(cont){
        CheckInput_callback()
    }
</script>